package cn.yerly.sakura.dao.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 订单支付信息
 * 
 * @author yerly
 *
 */
@Entity
public class OrderPayment {
	@Id
	private Long id;
	@ManyToOne
	private User user;
	@ManyToOne
	@JoinColumn(name="order_id")
	private Order order;
	private Integer payType;
	private Double payPrice;
	private Date payTime;
	private Boolean disabled;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Double getPayPrice() {
		return payPrice;
	}

	public void setPayPrice(Double payPrice) {
		this.payPrice = payPrice;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public Boolean getDisabled() {
		return disabled;
	}

	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}

	@Override
	public String toString() {
		return "OrderPayment [id=" + id + ", user=" + user + ", order=" + order
				+ ", payType=" + payType + ", payPrice=" + payPrice
				+ ", payTime=" + payTime + ", disabled=" + disabled + "]";
	}

}
